home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / actform / resizer.txt < prev   
Text File  |  1999-06-09  |  7KB  |  139 lines

  1.  
  2. Connection Artech Pty Ltd. Copyright 1999.
  3.  
  4. ActiveFormResizer Control Programmer's Manual
  5. Version 2.1
  6.  
  7.  
  8. Introduction
  9. We have developed ActiveFormResizer OCX for VB4, VB5 and VB6 applications.  This version is not suitable for Visual C/C++ and Web applications.
  10. During design time, ActiveFormResizer specifies how controls reposition and resize as the form resizes. At runtime, as the form resizes, minimizes, maximizes or restores, ActiveFormResizer manages each control's position and size automatically.
  11.  
  12. Major Features
  13. Most similar products resize all controls proportionally as the form resizes. The drawbacks are many, for example, text font and push button become smaller or larger. These functions are supported by ActiveFormResizer in stretch mode. 
  14. At anchor mode(non-stretch), ActiveFormResizer specifies each control's relative position to the borders of the form at design time.  A control can be set to anchored to the left, top, bottom and right of the form. During runtime, when the form is resized, these controls are resized or re-positioned, but maintaining the same relative position.
  15.  
  16. Installation
  17. 1. Unzip resize.zip to a temporary directory. From this directory, copy resize.ocx to C:\Windows\system (or your system directory).
  18. 2. Run MS-DOS Prompt form Start | Programs menu. Change current directory to C:\Windows\system(or the system directory of your PC),  then  type:
  19. regsvr32 resize.ocx
  20.  
  21. How to Use
  22. This is a VB5 example. VB4/6 examples are similar.
  23. 1. Add a new Form into your VB project, named as Form1.
  24. 2. Select menu Projects | Components, select the check box for ActiveFormResizer Control in the Components dialog box and select the OK button. A ActiveFormResizer  control is added into your Control  panel
  25. 3. Add a ActiveFormResizer control into the form, named Resize1 by default.
  26. 4. Add a listbox control into Form1, named as List1.
  27. 5. Right click on Resize1 to display Property Pages dialog box. The first column displays the name of controls in the form, the second column displays the index value for control array.  If a control is not an element of control array, its Array Index is -1 or empty. 
  28. 6. Double-click on List1, click "All Directions" check box and click OK button. List1 will be anchored to all edges of the form.
  29. 7. ActiveFormResizer uses properties MinWidth and MinHeight to specify the form's size in TWIPS. Set both to be 3400. 
  30. 8. Save your VB project. Click the Start button to run the program.
  31. 9. Resize Form1. You will see that List1 is repositioned and resized but maintains fixed relative positions to the edges of the form.
  32.  
  33. ActiveFormResizer Specification
  34. Properties
  35. MinWidth Property
  36. Sets the minimum width of the form in TWIPS. If it is -1, ActiveFormResizer will not restrict the form size.
  37. MinHeight Property
  38. Sets the minimum height of the form in TWIPS. If it is -1, ActiveFormResizer will not restrict the form size.
  39.  
  40. Stretch Property
  41. Sets to stretch mode(value is 1) or anchor mode(value is zero, default). At stretch mode, all controls in the form are stretched proportionally. At anchor mode, each control's anchor information is used for repositioning the control.
  42.  
  43. StretchFont Property
  44. Sets to stretch font size for label controls when value is one(1). When set to value zero(0), label controls font sizes are fixed. This property is valid for stretch mode only.
  45.  
  46.  
  47. Programming Issues
  48.  
  49. 1. Do not add more than one Resize control in a form.
  50.  
  51. Product Registration
  52. ActiveFormResizer is a shareware product. By paying a fee and registering the product, you will support the operation of our company and help us to bring to you more products. We will notify all registered users about all product upgrades.
  53. Step 1: Visit our WWW page: http://business.fortunecity.com/hunt/673 for pricing information. Standard price is $20 per license. Site license is available for $100 per site.
  54. Step 2: Send payment check with the Product Order Form. The form is available at the end of this file.
  55. Step 3: We will send you the unlock code.
  56. Step 4: Open your VB application project, click ActiveFormResizer control in a form, press F4 to display the Properties page for the control. Click the About property to display About ActiveFormResizer Control dialog box, and select "Register" button. Enter your name, User ID and Unlock code and select OK.
  57.  
  58. Bug and Update History
  59. 1. Version 1.0 -- First release, April 15, 1999.
  60. 2. Version 1.1 -- Revision 1 release, May 1, 1999.
  61. ╖ New Features:
  62. 1. Add property MinWidth and MinHeight to specify the minimum width and height for the container form. Measurement is TWIPS. Now, you don't need to add Form_Resize() in the form.
  63. ╖ Bugs fixed
  64. 1. Add versioning handling for future compatibility. This change will not allow EXE files made for Version 1.0 to work with Version 1.1+. Rebuild your EXE files.
  65. 2. Fix a few errors in documentation.
  66.  
  67. 3. Version 2.0 -- 2nd release, May 21, 1999.
  68. ╖ New Features:
  69. 1. Add property Stretch. This is of integer type and defaults to zero (0). When set to zero, the control is working in anchor mode where the each control's relative anchor position related to the form is used during resizing. When set to one (1), the control works in stretch mode where it stretch all controls in the form proportionally.
  70. 2. Add property StretchFont. This is of integer type and defaults to zero (0). This property is used for stretch mode (Property Stretch = 1). When set to zero (0),  the font sizes for label controls are fixed as the form resized; when set to one(1), the font sizes for label controls are resized proportionally. 
  71. ╖ Bugs fixed
  72. 1. During anchor mode, label controls were not positioned as specified.
  73. 2. Update documentation.
  74. 4. Version 2.1 -- 3rd release, June 10, 1999.
  75. ╖ Bugs fixed
  76. 1. Failed to position controls that contain one or more children windows. An example is Microsoft Calendar.
  77.  
  78.  
  79. Bugs & Suggestions
  80. Please email us all bug reports with title "BUG-RESIZE-XXXX", or product suggestions with title SUG_RESIZE-XXXX, where XXXX is a build number that can be found in the About dialog box of the OCX.
  81.  
  82.  
  83. Contact Us
  84. Connection Artech Pty Ltd
  85. 314 Quail Ridge Dr
  86. Plainsboro
  87. NJ 08536
  88. USA
  89. Tel & Fax: (609) 716 7016
  90. Email: jminchen@hotmail.com 
  91. WWW: http://business.fortunecity.com/hunt/673
  92.  
  93.  
  94.  
  95. ___________________________________________________________________________________
  96.  
  97. Product Order Form
  98.  
  99. Date    ____________________
  100. Name    ____________________
  101.  
  102. Company    ____________________
  103.  
  104. Address_____________________
  105.  
  106.     ____________________    
  107.  
  108.     ____________________
  109.  
  110. Telephone___________________
  111.  
  112. Fax    ____________________
  113.  
  114. Email    ____________________
  115.  
  116.  
  117. Delivery    
  118. o By Email    
  119. o By Fax    
  120. o By Surface Mail
  121. Quantity    Product        Unit Price    Total
  122.             
  123. _____________________________________________________            
  124.             
  125. _____________________________________________________            
  126.  
  127. _____________________________________________________
  128.             
  129.                     TOTALS:______
  130.     
  131.  
  132.  
  133. Note: 
  134. 1. Payment check should be titled to Connection Artech Pty Ltd.
  135. 2. Check must be payable at USA bank.
  136. 3. We prefer to deliver all our products by Email. Unlock codes 
  137. will be sent to your Email when payment check is cleared with banks.
  138.  
  139.